package com.wsoft.form.dto;

import com.wsoft.entity.BasePage;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 自定义表单-页面表
 * </p>
 *
 * @author Z001
 * @since 2024年08月29日 09:11:06
 */
@Getter
@Setter
@Schema(title = "页面表DTO")
@ToString
public class WfFormDTO extends BasePage {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "主表Id")
    private Long tableId;

    @NotBlank
    @Schema(description = "页面编码")
    private String formCode;

    @NotBlank
    @Schema(description = "页面名称")
    private String formName;

    @NotNull
    @Schema(description = "页面类型")
    private Integer formType;

    @Schema(description = "页面编辑状态")
    private Integer status;

    @Schema(description = "是否发布")
    private Integer published;

    @Schema(description = "工作流key")
    private String bmpKey;
}
